package org.fall.service.api;

import com.github.pagehelper.PageInfo;
import crowd.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author XZ
 * @create 2021-11-27 12:04
 */
public interface AdminService {
    void save(Admin admin);

    List<Admin> getAll();

    Admin getAdminByUsername(String userName, String password);

    PageInfo<Admin> getPageInfo(String keyword, Integer pageNum, Integer pageSize);

    void removeById(Integer adminId);

    Admin queryAdmin(Integer adminId);

    void updateAdmin(Admin admin);

    void saveAdminRoleRelationship(@Param("adminId") Integer adminId,@Param("roleIdList") List<Integer> roleIdList);
}
